<?php

class Control_Model_Form_ServicesContent extends Zend_Form
{
    public function __construct($options = null)
    {
        parent::__construct($options);
        $this->setName('service_content');

        $id = new Zend_Form_Element_Hidden('id');
        $id->addFilter('Int');

        $title = new Zend_Form_Element_Text('title');
        $title->setLabel('Title:')
            ->setRequired(true)
            ->addFilter('StripTags')
            ->addFilter('StringTrim')
            ->addValidator('NotEmpty')
            ->setAttrib('size', 50);

        $text1 = new Zend_Form_Element_Textarea('text1');
        $text1->setLabel('Text:')
            ->setRequired(true)
            ->addFilter('StringTrim')
            ->addValidator('NotEmpty')
            ->setAttrib('class', 'elrte');

        $author_text = new Zend_Form_Element_Textarea('author_text');
        $author_text->setLabel('Author quote:')
            ->setRequired(true)
            ->addFilter('StringTrim')
            ->addValidator('NotEmpty')
            ->setAttrib('class', 'elrte');
        
        $text3 = new Zend_Form_Element_Textarea('text3');
        $text3->setLabel('Text:')
            ->setRequired(true)

            ->addFilter('StringTrim')
            ->addValidator('NotEmpty')
            ->setAttrib('class', 'elrte');

        $author = new Zend_Form_Element_Text('author');
        $author->setLabel('Author:')
            ->setRequired(true)
            ->addFilter('StripTags')
            ->addFilter('StringTrim')
            ->addValidator('NotEmpty')
            ->setAttrib('size', 50);

        $service_content = new Zend_Form_Element_Hidden('service_content');
        $service_content->setValue('ServiceContent');

        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton');

        $this->addElements(array($id, $title, $text1, $author_text, $text3, $author, $service_content, $submit));
    }
}